﻿using System;
using System.Collections;
using System.Configuration;
using System.Data;
using System.Linq;
using System.Web;
using System.Web.Security;
using System.Web.UI;
using System.Web.UI.HtmlControls;
using System.Web.UI.WebControls;
using System.Web.UI.WebControls.WebParts;
using System.Xml.Linq;
using OboutInc.TextMenu;
using OboutInc.Show;
using FmcWebsite.Web;

namespace Cms
{
    public partial class SiteMain : System.Web.UI.MasterPage
    {
        protected void Page_Load(object sender, EventArgs e)
        {
            MainMenu.Add(null, "mi_home", "Home", "/Default.aspx");

            MainMenu.Add(null, "mi_about", "About us", "/Article.aspx?code=pasword");
            MainMenu.Add("mi_about", "mi_pasword", "Pastor's Word", "/Article.aspx?code=pasword");
            MainMenu.Add("mi_about", "mi_fmcchurch", "FMC Church");
            MainMenu.Add("mi_about", "mi_mission", "Mission & Vision");
            MainMenu.Add("mi_about", "mi_praise", "Praise & Worship");
            MainMenu.Add("mi_about", "mi_g12", "G12 Concept");
            MainMenu.Add("mi_about", "mi_values", "Church Values");

            MainMenu.Add(null, "mi_news", "News");

            MainMenu.Add(null, "mi_ladder", "Ladder of Success");
            MainMenu.Add("mi_ladder", "mi_los", "Concept");
            MainMenu.Add("mi_ladder", "mi_flow", "Flow");

            MainMenu.Add(null, "mi_jcgen", "JC Generation");

            MainMenu.Add(null, "mi_archive", "Archive");
            MainMenu.Add("mi_archive", "mi_goal", "Goals");
            MainMenu.Add("mi_archive", "mi_audio", "Audio Sermons");


            MainMenu.Add(null, "mi_contact", "Contact us");
            MainMenu.Add("mi_contact", "mi_dcf", "DCF Delft");
            MainMenu.Add("mi_contact", "mi_acf", "ACF Amersfoort");
            MainMenu.Add("mi_contact", "mi_nlc", "NLC London");
            MainMenu.Add("mi_contact", "mi_pniel", "Pniel Den Haag");
            MainMenu.Add("mi_contact", "mi_cgcp", "CGCP Amstelveen");
            MainMenu.Add("mi_contact", "mi_offer", "Offering & Tighing");

            slideShow.AddImagePanel("/images/slide1.jpg");

            var slides = WebAttachmentImage.GetSlides(this.Session);
            foreach (WebAttachmentImage slide in slides)
            {
                slideShow.AddImagePanel(slide.GetUrl());   
            }
        }

        protected void GetSermonAudio()
        {
            Response.Write("<br><table border=\"0\" width=\"100%\" style=\"font-size:large;\">");
            for (int i = 0; i < 4; i++)
            {
                Response.Write("<tr><td>Sunday service</td><td align=\"right\"></td></tr>");
            }
            Response.Write("</table>");
        }

    }
}
